﻿<%@ Register TagPrefix="ucCommon" TagName="Common" Src="../Common/Inc/Common.ascx" %>
<%@ Register TagPrefix="ucTop" TagName="Top" Src="../Common/Inc/Top.ascx" %>
<%@ Register TagPrefix="ucMenu" TagName="Menu" Src="../Common/Inc/Menu.ascx" %>
<%@ Register TagPrefix="ucTabTitle" TagName="TabTitle" Src="../Common/Inc/TabTitle.ascx" %>
<%@ Register TagPrefix="ucCopyright" TagName="Copyright" Src="../Common/Inc/Copyright.ascx" %>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Mny1010m.aspx.cs" Inherits="Updms.Mny.Mny1010m" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>▒ UPDMS [Mny1010m] ▒▒▒▒▒▒▒▒▒▒</title>
<ucCommon:Common id="Common" runat="server"></ucCommon:Common>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager runat="server" id="ScriptManager1" EnableScriptGlobalization="true"></asp:ScriptManager>

<table id="table_frame">
	<tr>
		<td id="top_area" colspan="2">
			<!-- Top 시작 -->
			<ucTop:Top id="Top" runat="server"></ucTop:Top>
			<!-- Top 끝 -->
		</td>
	</tr>
	<tr>
		<td id="menu_area">
			<!-- 메뉴 시작 -->
			<ucMenu:Menu id="Menu" runat="server"></ucMenu:Menu>
			<!-- 메뉴 끝 -->
		</td>
		<td id="contents_area">
			<!-- 제목 시작 -->
			<ucTabTitle:TabTitle id="TabTitle" TagPrefixs="Mny1010m" runat="server"></ucTabTitle:TabTitle>
			<!-- 제목 끝 -->
			<!-- AJAX 시작 -->
			<asp:UpdatePanel ID="UpdatePanel1" runat="server">
			<Triggers>
				<asp:PostBackTrigger ControlID="ibtn_excel"/>
			</Triggers>
			<ContentTemplate>
			<!-- 버튼 시작 -->
			<div class="button_area">
				<asp:linkbutton id="ibtn_excel" Text="엑셀" runat="server" CssClass="ibtn ibtn_excel" OnClick="ibtn_excel_Click"></asp:linkbutton>
				<asp:linkbutton id="ibtn_ftp" Text="아이폰" runat="server" CssClass="ibtn ibtn_phone" OnClientClick="return chkFtpTransfer();" OnClick="ibtn_ftp_Click"></asp:linkbutton>
				<asp:linkbutton id="ibtn_delete" Text="삭제" runat="server" CssClass="ibtn ibtn_delete" OnClientClick="return chkDelete()" OnClick="ibtn_delete_Click"></asp:linkbutton>
				<asp:linkbutton id="ibtn_save" Text="저장" runat="server" CssClass="ibtn ibtn_save" OnClientClick="return chkSave()" OnClick="ibtn_save_Click"></asp:linkbutton>		
				<asp:linkbutton id="ibtn_search" Text="검색" runat="server" CssClass="ibtn ibtn_search" OnClick="ibtn_search_Click"></asp:linkbutton>			
			</div>
			<!-- 버튼 끝 -->
			<!-- 검색 시작 -->
			<table class="table_search">
				<tr>
					<td class="lbl" width="8%"><asp:Literal ID="ltr_search_accnt_nm" Text="계좌명" runat="server" /></td>
					<td class="ctl" width="17%"><asp:TextBox id="txt_search_accnt_nm" runat="server" Width="97%" CssClass="ib_b"></asp:TextBox></td>
					<td class="lbl" width="8%"><asp:Literal ID="ltr_search_accnt_num" Text="계좌번호" runat="server" /></td>
					<td class="ctl" width="17%"><asp:TextBox id="txt_search_accnt_num" runat="server" Width="97%" CssClass="ib_b"></asp:TextBox></td>
					<td class="lbl" width="8%"><asp:Literal ID="ltr_search_depositor" Text="예금주" runat="server" /></td>
					<td class="ctl" width="17%"><asp:TextBox id="txt_search_depositor" runat="server" Width="97%" CssClass="ib_b"></asp:TextBox></td>
					<td class="lbl" width="8%"><asp:Literal ID="ltr_search_use_yn" Text="사용여부" runat="server" /></td>
					<td class="ctl" width="17%"><asp:DropDownlist id="ddl_search_use_yn" runat="server" CssClass="ddl"></asp:DropDownlist></td>
				</tr>
			</table>
			<!-- 검색 끝 -->
			<!-- 디테일1 시작 -->
			<table class="table_detail">
				<tr>
					<td class="lbl" width="11%"><asp:Literal ID="ltr_bnk_cd" Text="은행" runat="server" /></td>
					<td class="ctl" width="22%"><asp:DropDownList id="ddl_bnk_cd" runat="server" CssClass="ddl"></asp:DropDownList></td>
					<td class="lbl" width="11%"><asp:Literal ID="ltr_accnt_cd" Text="계좌구분" runat="server" /></td>
					<td class="ctl" width="22%"><asp:DropDownList id="ddl_accnt_cd" runat="server" CssClass="ddl"></asp:DropDownList></td>
					<td class="lbl" width="11%"><asp:Literal ID="ltr_accnt_nm" Text="계좌명" runat="server" /></td>
					<td class="ctl" width="22%"><asp:TextBox id="txt_accnt_nm" runat="server" Width="98%" CssClass="ib_b req"></asp:TextBox></td>
				</tr>
				<tr>
					<td class="lbl"><asp:Literal ID="ltr_accnt_num" Text="계좌번호" runat="server" /></td>
					<td class="ctl"><asp:TextBox id="txt_accnt_num" runat="server" Width="98%" CssClass="ib_b req"></asp:TextBox></td>
					<td class="lbl"><asp:Literal ID="ltr_depositor" Text="예금주" runat="server" /></td>
					<td class="ctl"><asp:TextBox id="txt_depositor" runat="server" Width="98%" CssClass="ib_b req"></asp:TextBox></td>
					<td class="lbl"><asp:Literal ID="ltr_accnt_pw" Text="계좌비밀번호" runat="server" /></td>
					<td class="ctl"><asp:TextBox id="txt_accnt_pw" runat="server" Width="98%" CssClass="ib_b" TextMode="Password"></asp:TextBox></td>
				</tr>
				<tr>
					<td class="lbl"><asp:Literal ID="ltr_accnt_st_dt" Text="계좌개설일" runat="server" /></td>
					<td class="ctl"><asp:textbox id="txt_accnt_st_dt" runat="server" CssClass="ib_b_dt"></asp:textbox>&nbsp;<img src="../Common/Images/calendar.png" id="ci_accnt_st_dt" class="ci_calendar" runat="server"></td>
					<td class="lbl"><asp:Literal ID="ltr_accnt_ed_dt" Text="계좌만기일" runat="server" /></td>
					<td class="ctl"><asp:textbox id="txt_accnt_ed_dt" runat="server" CssClass="ib_b_dt"></asp:textbox>&nbsp;<img src="../Common/Images/calendar.png" id="ci_accnt_ed_dt" class="ci_calendar" runat="server"></td>
					<td class="lbl" rowspan="2"><asp:Literal ID="ltr_remark" Text="비고" runat="server" /></td>
					<td class="ctl" rowspan="2"><asp:TextBox id="txt_remark" runat="server" Width="95.8%" CssClass="tb_scroll" TextMode="MultiLine" Rows="2" Height="37px"></asp:TextBox></td>
				</tr>
				<tr>
					<td class="lbl">ⓘ <asp:Literal ID="ltr_ibnk_url" Text="주소" runat="server" /></td>
					<td class="ctl"><asp:TextBox id="txt_ibnk_url" runat="server" Width="98%" CssClass="ib_b"></asp:TextBox></td>
					<td class="lbl">ⓘ <asp:Literal ID="ltr_ibnk_id" Text="아이디" runat="server" /></td>
					<td class="ctl"><asp:TextBox id="txt_ibnk_id" runat="server" Width="98%" CssClass="ib_b"></asp:TextBox></td>
				</tr>
				<tr>
					<td class="lbl">ⓘ <asp:Literal ID="ltr_ibnk_pw" Text="비밀번호" runat="server" /></td>
					<td class="ctl"><asp:TextBox id="txt_ibnk_pw" runat="server" Width="98%" CssClass="ib_b" TextMode="Password"></asp:TextBox></td>
					<td class="lbl">ⓘ <asp:Literal ID="ltr_ibnk_tran_pw" Text="이체비번" runat="server" /></td>
					<td class="ctl"><asp:TextBox id="txt_ibnk_tran_pw" runat="server" Width="98%" CssClass="ib_b" TextMode="Password"></asp:TextBox></td>
					<td class="lbl"><asp:Literal ID="ltr_use_yn" Text="사용여부" runat="server" /></td>
					<td class="ctl">
						<asp:radiobuttonlist id="rbl_use_yn" runat="server" CellPadding="0" RepeatDirection="Horizontal" RepeatLayout="Flow" CssClass="rbl_flow"></asp:radiobuttonlist>
					</td>
				</tr>
			</table>
			<!-- 디테일1 끝 -->
			<!-- 리스트셋 시작 -->
			<table cellpadding="0" cellspacing="0" border="0" width="100%">
				<tr>
					<td>
						<!-- 검색어 시작 -->
						<div class="div_left">Keyword : <asp:label id="lbl_search_keyword" runat="server"></asp:label></div>
						<div class="div_right"><asp:checkbox id="cb_list_all" runat="server" AutoPostBack="True" OnCheckedChanged="cb_list_all_CheckedChanged" ToolTip="Show All"></asp:checkbox></div>
						<!-- 검색어 끝 -->
					</td>
				</tr>
				<tr>
					<td>
						<!-- 리스트 시작 -->
						<asp:GridView ID="GridView1" CssClass="table_gridview" GridLines="None" runat="server" AutoGenerateColumns="False" OnRowDataBound="GridView1_RowDataBound" OnRowCommand="GridView1_RowCommand" DataKeyNames="Seq,Bnk_Cd,Accnt_Cd,Accnt_Pw,iBnk_Url,iBnk_Pw,iBnk_Tran_Pw,Remark">
							<Columns>
								<asp:TemplateField HeaderText="&lt;a href=&quot;javascript:void(0);&quot; onclick=&quot;checkBoxCheck('GridView1');&quot;&gt;S&lt;/a&gt;">
									<ItemTemplate>
										<input id="cb_check" class="cb" type="checkbox" onclick="reverseRow('GridView1', 0);" runat="server" />
									</ItemTemplate>
									<ItemStyle HorizontalAlign="Center" Width="2%" />
								</asp:TemplateField>
								<asp:BoundField HeaderText="번호" >
									<ItemStyle HorizontalAlign="Center" Width="4%" />
								</asp:BoundField>
								<asp:BoundField DataField="Seq" HeaderText="Seq(X)" Visible="False" />
								<asp:BoundField DataField="Bnk_Cd" HeaderText="Bnk_Cd(X)" Visible="False" />
								<asp:BoundField DataField="Bnk_Cd_Nm" HeaderText="은행" HtmlEncode="False" >
									<ItemStyle HorizontalAlign="Left" Width="8%" />
								</asp:BoundField>
								<asp:BoundField DataField="Accnt_Cd" HeaderText="Accnt_Cd(X)" HtmlEncode="False"
									Visible="False" />
								<asp:BoundField DataField="Accnt_Cd_Nm" HeaderText="계좌구분" HtmlEncode="False" >
									<ItemStyle HorizontalAlign="Left" Width="8%" />
								</asp:BoundField>
								<asp:BoundField DataField="Accnt_Nm" HeaderText="계좌명" HtmlEncode="False" >
									<ItemStyle HorizontalAlign="Left" Width="18%" />
								</asp:BoundField>
								<asp:TemplateField HeaderText="계좌번호">
									<ItemTemplate>
										<asp:LinkButton ID="lbtn_rc" runat="server" Text='<%# Bind("Accnt_Num") %>'></asp:LinkButton>
									</ItemTemplate>
									<ItemStyle HorizontalAlign="Left" Width="16%" />
									<HeaderStyle CssClass="lbtn_rc balloon" />
								</asp:TemplateField>
								<asp:BoundField DataField="Depositor" HeaderText="예금주" HtmlEncode="False" >
									<ItemStyle HorizontalAlign="Center" Width="6%" />
								</asp:BoundField>
								<asp:BoundField DataField="Accnt_Pw" HeaderText="Accnt_Pw(X)" HtmlEncode="False"
									Visible="False" />
								<asp:BoundField DataField="Accnt_St_Dt" HeaderText="개설일" HtmlEncode="False" >
									<ItemStyle HorizontalAlign="Center" Width="8%" />
								</asp:BoundField>
								<asp:BoundField DataField="Accnt_Ed_Dt" HeaderText="만기일" HtmlEncode="False" >
									<ItemStyle HorizontalAlign="Center" Width="8%" />
								</asp:BoundField>
								<asp:BoundField DataField="iBnk_Url" HeaderText="iBnk_Url(X)" HtmlEncode="False"
									Visible="False" />
								<asp:BoundField DataField="iBnk_Id" HeaderText="아이디" HtmlEncode="False" >
									<ItemStyle HorizontalAlign="Left" Width="10%" />
								</asp:BoundField>
								<asp:BoundField DataField="iBnk_Pw" HeaderText="iBnk_Pw(X)" HtmlEncode="False" Visible="False" />
								<asp:BoundField DataField="iBnk_Tran_Pw" HeaderText="iBnk_Tran_Pw(X)" HtmlEncode="False"
									Visible="False" />
								<asp:BoundField DataField="Remark" HeaderText="Remark(X)" HtmlEncode="False" Visible="False" />
								<asp:BoundField DataField="Use_Yn" HeaderText="사용여부" HtmlEncode="False" >
									<ItemStyle HorizontalAlign="Center" Width="6%" />
								</asp:BoundField>
								<asp:BoundField DataField="Search_Pw" HeaderText="비밀번호" HtmlEncode="False" >
									<ItemStyle HorizontalAlign="Center" Width="6%" />
									<HeaderStyle Font-Underline="True" />
								</asp:BoundField>
							</Columns>
							<EmptyDataTemplate>
								<div id="no_data"></div>
							</EmptyDataTemplate>
						</asp:GridView>
						<!-- 리스트 끝 -->
					</td>
				</tr>
				<tr>
					<td>
						<!-- 페이징 시작 -->
						<div class="div_left">Result : <asp:label id="lbl_result_count" runat="server"></asp:label></div>
						<div class="div_right"><asp:label id="lbl_page" runat="server"></asp:label></div>
						<!-- 페이징 끝 -->
					</td>
				</tr>
			</table>
			<!-- 리스트셋 끝 -->
			<!-- 카피라이트 시작 -->
			<ucCopyright:Copyright id="Copyright" runat="server"></ucCopyright:Copyright>
			<!-- 카피라이트 끝 -->
			<!-- 히든값 시작 -->
			<div id="hdn_data">
			<asp:label id="lbl_pk" runat="server"></asp:label>
			<asp:Label id="lbl_search_flag" runat="server"></asp:Label>
			<asp:Label id="lbl_accnt_pw" runat="server" Visible="False"></asp:Label>
			<asp:Label id="lbl_ibnk_pw" runat="server" Visible="False"></asp:Label>
			<asp:Label id="lbl_ibnk_tran_pw" runat="server" Visible="False"></asp:Label>
			<input id="h_no" type="hidden" name="h_no" runat="server" />
			</div>
			<!-- 히든값 끝 -->
			<!-- CalendarExtender 시작 -->
			<act:CalendarExtender ID="ce_accnt_st_dt"
				runat="server"
				TargetControlID="txt_accnt_st_dt"
				Format="yyyy-MM-dd"
				PopupButtonID="ci_accnt_st_dt"
				EnableViewState="False"
				BehaviorID="bi_accnt_st_dt"
				CssClass="calendar">
			</act:CalendarExtender>
			<act:CalendarExtender ID="ce_accnt_ed_dt"
				runat="server"
				TargetControlID="txt_accnt_ed_dt"
				Format="yyyy-MM-dd"
				PopupButtonID="ci_accnt_ed_dt"
				EnableViewState="False"
				BehaviorID="bi_accnt_ed_dt"
				CssClass="calendar">
			</act:CalendarExtender>
			</ContentTemplate>
			</asp:UpdatePanel>
			<!-- AJAX 끝 -->
		</td>
	</tr>
</table>

<asp:updateprogress AssociatedUpdatePanelID="UpdatePanel1" ID="updateProgress" runat="server">
	<progresstemplate>
		<div id="progressBackgroundFilter"></div>
		<div id="processMessage">
			<div id="processing"></div>
			<img src="../Common/Images/processing_img.gif" />
		</div>
	</progresstemplate>
</asp:updateprogress>

</form>
<script type="text/javascript" language="javascript" defer="defer">
	//저장
	function chkSave() {
		if ($F("txt_accnt_nm").blank()) {
			msgBox.alert(getMsg(MSG_ERR_055), setFocus, "txt_accnt_nm"); //계좌명을 입력해 주세요
			return false;
		}
		if ($F("txt_accnt_num").blank()) {
			msgBox.alert(getMsg(MSG_ERR_056), setFocus, "txt_accnt_num"); //계좌번호를 입력해 주세요
			return false;
		}
		if ($F("txt_depositor").blank()) {
			msgBox.alert(getMsg(MSG_ERR_048), setFocus, "txt_depositor"); //예금주를 입력해 주세요
			return false;
		}

		var pk = $get("lbl_pk").innerHTML;
		var MSG_ID = (pk == "") ? MSG_CFM_000 : MSG_CFM_028; //저장/수정
		msgBox.confirm(getMsg(MSG_ID), doSave); //저장하시겠습니까?

		return false;
	}

	//삭제
	function chkDelete() {
		if(!isCheckedOnGridView("GridView1", 0)) {
			msgBox.alert(getMsg(MSG_ERR_053));	//삭제할 항목을 선택하세요
			return false;
		}
		msgBox.confirm(getMsg(MSG_CFM_001), doDelete);	//삭제하시겠습니까?
		return false;
	}

	//FTP전송
	function chkFtpTransfer() {
		msgBox.confirm(getMsg(MSG_CFM_025), doFtpTransfer); //전송하시겠습니까?
		return false;
	}

</script>
</body>
</html>